package com.example.foods.controller;

import com.example.foods.common.Constants;
import com.example.foods.domain.AdminInfo;

import javax.servlet.http.HttpSession;

public class BaseController {

    //获取当前登录系统的管理员信息
    protected AdminInfo findCurrentAdminInfo(HttpSession httpSession) {
         return (AdminInfo)httpSession.getAttribute(Constants.SESSION_KEY_LOGINED_USER);
    }
}
